﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PreeRegisterModel
{
    public class LocalPacsModel
    {
        /// <summary>
        /// 查询患者视图列表请求类
        /// </summary>
        public class PacsPatInfoListByTimeRequestModel
        {
            /// <summary>
            /// 医院ID
            /// </summary>
            public int hospid { get; set; }
            /// <summary>
            /// 开始时间
            /// </summary>
            public string starttime { get; set; }
            /// <summary>
            /// 结束时间
            /// </summary>
            public string endtime { get; set; }
            /// <summary>
            /// 住院号
            /// </summary>
            public string adnum { get; set; }
        }


        /// <summary>
        /// 通过住院号查询患者视图列表请求类
        /// </summary>
        public class PacsPatInfoByInCodeRequestModel
        {
            /// <summary>
            /// 住院号
            /// </summary>
            public string InCode { get; set; }
        }

        /// <summary>
        /// 查询患者视图列表返回类
        /// </summary>
        public class InPatResponseModel
        {
            /// <summary>
            /// code
            /// </summary>
            public string code { get; set; }

            /// <summary>
            /// msg
            /// </summary>
            public string msg { get; set; }
            public List<InPatModel> result { get; set; }
        }

        public class InPatModel
        {
            public string unitId { get; set; }
            public string xeguid { get; set; }
        }


        /// <summary>
        /// 查询患者视图列表返回类
        /// </summary>
        public class PacsPatInfoListResponseModel
        {
            /// <summary>
            /// code
            /// </summary>
            public string code { get; set; }

            /// <summary>
            /// msg
            /// </summary>
            public string msg { get; set; }
            public List<PacsPatInfoModel> result { get; set; }
        }

        public class PacsPatInfoModel
        {
            public string hospid { get; set; } = "248";
            public string unitId { get; set; }//根据医院ID修改和二维码生成ID一致
            /// <summary>
            /// xeguid
            /// </summary>
            public string applyno { get; set; }
            public string studyid { get; set; }
            /// <summary>
            /// patientidnumber
            /// </summary>
            public string patientid { get; set; }
            /// <summary>
            /// telnumber
            /// </summary>
            public string telephone { get; set; }
            /// <summary>
            /// devicetype
            /// </summary>
            public string devicetypename { get; set; }
            public string devicename { get; set; }
            public string studystatus { get; set; }
            /// <summary>
            /// patientname
            /// </summary>
            public string name { get; set; }
            public string patientage { get; set; }
            public string patientageunit { get; set; }
            /// <summary>
            /// patientage+patientageunit
            /// </summary>
            public string age { get; set; }
            public string patientename { get; set; }
            /// <summary>
            /// patientsex
            /// </summary>
            public string sex { get; set; }

            public string studytype { get; set; }
            /// <summary>
            /// imagecount
            /// </summary>
            public string studyfilenum { get; set; }
            public string registertime { get; set; }
            public string studytime { get; set; }
            /// <summary>
            /// studydescribe
            /// </summary>
            public string studyplace { get; set; }
            public string patientoutpatientid { get; set; }
            public string patientinpatientid { get; set; }
            public string patienttypename { get; set; }
            public string departmentid { get; set; }
            public string isavailable { get; set; }
            /// <summary>
            /// ApplyDeptID
            /// </summary>
            public string deptid { get; set; }         //申请科室id
            /// <summary>
            /// ApplyDeptName
            /// </summary>
            public string deptname { get; set; }  //申请科室名称
            public string ApplyDocID { get; set; }     //申请医生id
            public string ApplyDocName { get; set; }//申请医生姓名
            /// <summary>
            /// diagnose
            /// </summary>
            public string clinicdiag { get; set; }   //报告诊断 必填
            public string advice { get; set; }   //报告建议 必填
            public string DESCRIBE { get; set; }    //报告描述 必填
            public string ReportTime { get; set; }
            public string FinallyEditTime { get; set; } //报告最后修改时间 必填
            public string doctorname1 { get; set; }     //该报告的一线医生 必填
            public string doctorname2 { get; set; }     //该报告的二线医生 必填
            public string doctorname3 { get; set; }  //该报告的三线医生 必填-没有可为空值
            public string tempsavestate { get; set; } //暂存标记（1为暂存|0为正常）	必填
            public string ifmasculine { get; set; } //是否阳性，0：未确定，1：阴性，2：阳性 必填

            public string checkresult { get; set; }
            public string reportdoc { get; set; }
            public string recorder { get; set; }
            public string verifydoc { get; set; }
            public string reportdate { get; set; }
            public string studyurl { get; set; }
            public string filmurl { get; set; }
            public string studydept { get; set; }
            public string fixcode { get; set; }
            public string bedno { get; set; }
            public string studydoc { get; set; }
            public string birthday { get; set; }
            public string patienttype { get; set; }
            public string idcard { get; set; }
            public string studydate { get; set; }
        }
    }
}
